<!DOCTYPE html>
<head xmlns:v-bind="http://www.w3.org/1999/xhtml" >
    <meta charset="UTF-8">
    <title>demo17_1-vue混入,选项合并</title>
  <script src="./js/vue.min.js"></script>
  <script src="./js/vue-router.js"></script>
</head>

<body>


</body>

<script type="application/javascript">


 const myMixin = {
   created: function () {
      document.write('混入调用<br/>')
   }
 };

 new Vue({
   mixins: [myMixin],
   created: function () {
     document.write('组件调用<br>')
   }
 })

</script>
</html>
